package lk.icta.user.common;

/**
 * @author Mahesha Kalpanie
 */
public class UserException extends Exception {
    private int errorCode;

    public UserException(String message, int errorCode) {
        super(message);
        this.errorCode = errorCode;
    }

    public UserException(String message, int errorCode, Throwable cause) {
        super(message, cause);
        this.errorCode = errorCode;
    }

    public UserException(String message, Throwable cause) {
        super(message, cause);
    }

    public int getErrorCode() {
        return errorCode;
    }
}
